from rest_framework.serializers import ModelSerializer
from order.models import Coupon,UserCoupon
class CouponSerializer(ModelSerializer):
    class Meta:
        model=Coupon
        fields="__all__"
class userCouponSerializer(ModelSerializer):
    coupon=CouponSerializer()
    class Meta:
        model=UserCoupon
        fields="__all__"
